import java.math.BigDecimal;

import org.iteam.xlz.core.entity.user.UserRelationRecord;
import org.iteam.xlz.core.service.user.UserRelationRecordService;

public class Texst {

	@org.junit.Test
	public void test(){

	}
	
	public static void main(String[] args) {
		BigDecimal orderAmount=new BigDecimal("11.5345");
		BigDecimal rate=new BigDecimal("0.05");
		orderAmount=orderAmount.multiply(rate);
		orderAmount=orderAmount.setScale(2,BigDecimal.ROUND_HALF_UP);
		String amount=orderAmount.toString();
		System.out.println(amount);
	}
}
